package ext.tianma.model;

import wt.fc.ObjectReference;
import wt.util.WTException;

import com.ptc.windchill.annotations.metadata.GenAsPersistable;
import com.ptc.windchill.annotations.metadata.GeneratedProperty;
import com.ptc.windchill.annotations.metadata.IconProperties;
import com.ptc.windchill.annotations.metadata.PropertyConstraints;
import com.ptc.windchill.annotations.metadata.TableProperties;
import com.ptc.windchill.annotations.metadata.ColumnProperties;
/**
		 变更通告编号 ECONumber
		变更类型  ECOOperatingType
		状态 ECOStatus
		受影响对象 ECOAffectedRef
		视图 ECOView
		物料号 ECOPartNumber
		用量 ECODosage
		行号 ECOLineNumber
		新物料号 ECONewPartNumber
		新用量 ECONewDosage
		新行号 ECONewLineNumber
		替代料号 ECOSubstituteNumber
		替代料行号 ECOSubstituteLineNmuber
		替代料用量 ECOSubstituteDosage
		新替代料号 ECONewSubstituteNumber
		新替代料行号 ECONewSubstituteLineNmuber
		新替代料用量 ECONewSubstituteDosage

 *
 */
@GenAsPersistable(superClass = TMObjectModel.class,
    properties = {
			@GeneratedProperty(name = "ECORef", javaDoc = "ECO对象", type = ObjectReference.class, constraints = @PropertyConstraints(required = true), columnProperties = @ColumnProperties(index = true)),
            @GeneratedProperty(name = "ECONumber", type = String.class, constraints = @PropertyConstraints(required = true, upperLimit = 500)),
            @GeneratedProperty(name = "ECOOperatingType", type = String.class, constraints = @PropertyConstraints(required = true, upperLimit = 5000)),
            @GeneratedProperty(name = "ECOStatus", type = String.class, constraints = @PropertyConstraints(upperLimit = 500)),
            @GeneratedProperty(name = "ECOAffectedRef", javaDoc = "ECO受影响对象", type = ObjectReference.class, constraints = @PropertyConstraints(required = true), columnProperties = @ColumnProperties(index = true)),
            @GeneratedProperty(name = "ECOView", type = String.class, constraints = @PropertyConstraints(upperLimit = 500)),
            @GeneratedProperty(name = "ECOPartNumber", type = String.class, constraints = @PropertyConstraints(required = true, upperLimit = 500)),
            @GeneratedProperty(name = "ECODosage", type = String.class, constraints = @PropertyConstraints(required = false)),
            @GeneratedProperty(name = "ECOLineNumber", type = String.class, constraints = @PropertyConstraints(required = false)),
            @GeneratedProperty(name = "ECONewPartNumber", type = String.class, constraints = @PropertyConstraints(required = false, upperLimit = 500)),
            @GeneratedProperty(name = "ECONewDosage", type = String.class, constraints = @PropertyConstraints(required = false)),
            @GeneratedProperty(name = "ECONewLineNumber", type = String.class, constraints = @PropertyConstraints(required = false)),
            @GeneratedProperty(name = "ECOSubstituteNumber", type = String.class, constraints = @PropertyConstraints(required = false, upperLimit = 500)),
            @GeneratedProperty(name = "ECOSubstituteLineNmuber", type = String.class, constraints = @PropertyConstraints(required = false)),
            @GeneratedProperty(name = "ECOSubstituteDosage", type = String.class, constraints = @PropertyConstraints(required = false)),
            @GeneratedProperty(name = "ECONewSubstituteNumber", type = String.class, constraints = @PropertyConstraints(required = false, upperLimit = 500)),
            @GeneratedProperty(name = "ECONewSubstituteLineNmuber", type = String.class, constraints = @PropertyConstraints(required = false)),
            @GeneratedProperty(name = "ECONewSubstituteDosage", type = String.class, constraints = @PropertyConstraints(required = false)),
            @GeneratedProperty(name = "str1", type = String.class, constraints = @PropertyConstraints(required = false)),
            @GeneratedProperty(name = "str2", type = String.class, constraints = @PropertyConstraints(required = false)),
            @GeneratedProperty(name = "str3", type = String.class, constraints = @PropertyConstraints(required = false)),
			@GeneratedProperty(name = "str4", type = String.class, constraints = @PropertyConstraints(required = false)),
			@GeneratedProperty(name = "str5", type = String.class, constraints = @PropertyConstraints(required = false)),
			@GeneratedProperty(name = "str6", type = String.class, constraints = @PropertyConstraints(required = false))
      },
    tableProperties = @TableProperties(tableName = "TMECOITEMModel"),
    iconProperties = @IconProperties(standardIcon = "netmarkets/images/TM/TMECOITEM.gif", openIcon = "netmarkets/images/TM/TMECOITEM.gif"))

public class TMECOITEMModel extends _TMECOITEMModel {
    static final long serialVersionUID = 1;

    public static TMECOITEMModel newTMECOITEMModel() throws WTException {
       TMECOITEMModel instance = new TMECOITEMModel();
        instance.initialize();
        return instance;
    }
}
